package com.frejoys.common.dto.order;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.util.List;


@Data
public class OrderPlaceDto {

    // 收获地址
//    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "userAddressId", description = "用户收货地址id", required = true, defaultValue = "1")
    private Integer userAddressId;

    // 店铺id
    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "storeId", description = "店铺id", required = true, defaultValue = "1")
    private Integer storeId;

    // 订单商品
    @NotEmpty(message = "{600}")
    @Schema(type = "List<OrderGoodsDto>", name = "goodsInfo", description = "订单商品", required = true)
    private List<OrderGoodsDto> goodsInfo;

}
